home *** CD-ROM | disk | FTP | other *** search
/ Planet Source Code Jumbo …e CD Visual Basic 1 to 7 / 5_2007-2008.ISO / data / Zips / Popupmenu_2076497212007.psc / Image Menu / Form1.frm next >
Text File  |  2000-01-21  |  5KB  |  197 lines

  1. VERSION 5.00
  2. Begin VB.Form Form1 
  3.    BorderStyle     =   4  'Fixed ToolWindow
  4.    Caption         =   "Image Menu "
  5.    ClientHeight    =   4800
  6.    ClientLeft      =   150
  7.    ClientTop       =   720
  8.    ClientWidth     =   10080
  9.    FillColor       =   &H00FF8080&
  10.    LinkTopic       =   "Form1"
  11.    MaxButton       =   0   'False
  12.    MinButton       =   0   'False
  13.    ScaleHeight     =   4800
  14.    ScaleWidth      =   10080
  15.    ShowInTaskbar   =   0   'False
  16.    StartUpPosition =   3  'Windows Default
  17.    Begin VB.Label Label2 
  18.       AutoSize        =   -1  'True
  19.       BackStyle       =   0  'Transparent
  20.       Caption         =   "www.bioscopedvd.com"
  21.       Height          =   195
  22.       Left            =   480
  23.       TabIndex        =   1
  24.       Top             =   2760
  25.       Width           =   1665
  26.    End
  27.    Begin VB.Label Label1 
  28.       AutoSize        =   -1  'True
  29.       BackStyle       =   0  'Transparent
  30.       Caption         =   "Right click to see popupmenu"
  31.       Height          =   195
  32.       Left            =   360
  33.       TabIndex        =   0
  34.       Top             =   1200
  35.       Width           =   2115
  36.    End
  37.    Begin VB.Image menu 
  38.       Height          =   4680
  39.       Left            =   4920
  40.       Picture         =   "Form1.frx":0000
  41.       Top             =   0
  42.       Width           =   3300
  43.    End
  44.    Begin VB.Menu mnuOption 
  45.       Caption         =   "Option"
  46.       Begin VB.Menu mnuFile 
  47.          Caption         =   "&File"
  48.       End
  49.       Begin VB.Menu mnuOpen 
  50.          Caption         =   "&Open"
  51.       End
  52.       Begin VB.Menu mnuView 
  53.          Caption         =   "&View"
  54.          Shortcut        =   ^S
  55.       End
  56.       Begin VB.Menu mnuPro 
  57.          Caption         =   "&Project"
  58.       End
  59.       Begin VB.Menu mnuFormate 
  60.          Caption         =   "F&ormate"
  61.       End
  62.       Begin VB.Menu mnuDeb 
  63.          Caption         =   "&Debug"
  64.       End
  65.       Begin VB.Menu mnuRun 
  66.          Caption         =   "&Run"
  67.       End
  68.       Begin VB.Menu mnuQue 
  69.          Caption         =   "Q&uery"
  70.       End
  71.       Begin VB.Menu mnuDia 
  72.          Caption         =   "D&iagram"
  73.       End
  74.       Begin VB.Menu mnuTool 
  75.          Caption         =   "&Tools"
  76.       End
  77.       Begin VB.Menu mnuAdd 
  78.          Caption         =   "&Add-Ins"
  79.          Checked         =   -1  'True
  80.       End
  81.       Begin VB.Menu mnuWin 
  82.          Caption         =   "&Window"
  83.       End
  84.       Begin VB.Menu mnuExit 
  85.          Caption         =   "Exit"
  86.       End
  87.    End
  88. End
  89. Attribute VB_Name = "Form1"
  90. Attribute VB_GlobalNameSpace = False
  91. Attribute VB_Creatable = False
  92. Attribute VB_PredeclaredId = True
  93. Attribute VB_Exposed = False
  94. Option Explicit
  95.  
  96. Private Sub Form_Load()
  97. Me.Width = 3000
  98. Me.Left = (Screen.Width - Me.Width) / 2 'center the form
  99. Me.Top = (Screen.Height - Me.Height) / 2 'center the form
  100. SetCustomMenus
  101. End Sub
  102. Private Sub SetCustomMenus()
  103.     startODMenus Me, True
  104.     With CustomMenu
  105.         .Texture = False
  106.         Set .Picture = menu.Picture
  107.         .UseCustomFonts = True
  108. '        .FontUnderline = False
  109.         .FontName = "arial" '"Comic Sans MS" '
  110. '        .FontItalic = False
  111. '        .FontStrikeOut = False
  112.          .PosX = 30
  113.     End With
  114.     MenuMode = VBLook 'XP look menu
  115.     With CustomColor
  116.         .ForeColor = RGB(16, 0, 16) 'Magic color
  117.         .DefTextColor = vbRed  ' Red
  118.         .HilightColor = RGB(182, 189, 210)
  119.         .NormalColor = RGB(186, 186, 204)
  120.         .BackColor = RGB(58, 110, 165)
  121.         .SelectedTextColor = RGB(0, 0, 255)
  122.         .MenuTextColor = vbBlack
  123.         .BorderColor = RGB(240, 72, 72)
  124.         .RECTColor = RGB(10, 36, 106)
  125.     End With
  126.     With CustomMenu
  127.         .Icon.Add Array(101), "&File"
  128.             End With
  129.   End Sub
  130.  
  131. Private Sub Form_MouseDown(Button As Integer, Shift As Integer, x As Single, y As Single)
  132. If Button = 2 Then PopupMenu mnuOption 'call popupmenu
  133. End Sub
  134.  
  135. Private Sub Label1_MouseDown(Button As Integer, Shift As Integer, x As Single, y As Single)
  136. If Button = 2 Then PopupMenu mnuOption 'call popupmenu
  137. End Sub
  138.  
  139. Private Sub mnuAdd_Click()
  140. MsgBox "Write code for this menu"
  141.  
  142. End Sub
  143.  
  144. Private Sub mnuDeb_Click()
  145. MsgBox "Write code for this menu"
  146.  
  147. End Sub
  148.  
  149. Private Sub mnuDia_Click()
  150. MsgBox "Write code for this menu"
  151.  
  152. End Sub
  153.  
  154. Private Sub mnuEdit_Click()
  155. MsgBox "Write code for this menu"
  156. End Sub
  157.  
  158. Private Sub mnuExit_Click()
  159. stopODMenus Me
  160. Unload Me
  161. End Sub
  162.  
  163. Private Sub mnuFormate_Click()
  164. MsgBox "Write code for this menu"
  165.  
  166. End Sub
  167.  
  168. Private Sub mnuPro_Click()
  169. MsgBox "Write code for this menu"
  170.  
  171. End Sub
  172.  
  173. Private Sub mnuQue_Click()
  174. MsgBox "Write code for this menu"
  175.  
  176. End Sub
  177.  
  178. Private Sub mnuRun_Click()
  179. MsgBox "Write code for this menu"
  180.  
  181. End Sub
  182.  
  183. Private Sub mnuTool_Click()
  184. MsgBox "Write code for this menu"
  185.  
  186. End Sub
  187.  
  188. Private Sub mnuView_Click()
  189. MsgBox "Write code for this menu"
  190.  
  191. End Sub
  192.  
  193. Private Sub mnuWin_Click()
  194. MsgBox "Write code for this menu"
  195.  
  196. End Sub
  197.